<% #endcoding:utf-8%>
<ul class="nav navbar-nav" id="top-nav">
  <li role="presentation" class="<% if params[:controller]=="demands"%>active<%end%>"><a href="/demands">验厂需求</a></li>
  <li role="presentation" class="<% if params[:controller]=="questions"%>active<%end%>"><a href="/questions/index">验厂问答</a></li>
</ul>